<?php
session_start();
header("Content-type: text/html; charset=utf-8");
$arrayIni = parse_ini_file('config/config.ini');

require_once 'library/ConnDB.php';
require_once 'library/ExecuteDB.php';
require_once 'library/PageDB.php';
require_once 'library/SmartyConfig.php';
require_once 'library/Cart.php';
require_once 'library/Util.php';

$connDB = new ConnDB($arrayIni['dbType'] ,$arrayIni['host'] ,$arrayIni['userName'] ,$arrayIni['password'] ,$arrayIni['contentdbName'] ,$arrayIni['isDebug']);
$connID = $connDB->getConnID();

$adminDB = new ExecuteDB();
$pageDB = new PageDB();

$smarty = new SmartyConfig();
$util =  new Util();
$smarty->assign('util', $util, null, false);
?>